<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }
    .box{
        width: 600px;
        height: 200px;
        background: #eee;
        display: flex;
    }
    .box p{
        width: 90px;
        text-align: center;
    }
    .one{
        color: blue;
    }
    .two{
        color: yellow;
    }
</style>

<body>

    <div id="app"></div>
    <script src="../src/react.js"></script>
    <script src="../src/react-dom.js"></script>
    <script src="../src/babel.js"></script>
    <script type="text/babel">
        let arr = ['aaaa', 'eeee', 'rrrr', 'oooo', 'uuuu']
        let flag = false
        let sss
        if(!flag){
            sss = 'false'
        }else{
            sss = 'true'
        }
        let dom = (
            <div className="box" style={{ fontSize:'28px',color:'red' }}>
                {arr.map((e,i)=>{return <p className={i !== 0?'one':'two'} key={i}>{e}</p>})}
                <p>{sss}</p>
            </div>)
        ReactDOM.render(dom,
            document.getElementById("app")
        )
    </script>
</body>

</html>